package responsibility.my;

/**
 * @Author: Doream
 * @Date: 2022/1/29 21:57
 */
public class Client {
    public static void main(String[] args) {
        LeaveRequest leaveRequest1 = new LeaveRequest("小熊", 1, "身体不适");
        LeaveRequest leaveRequest2 = new LeaveRequest("小磊", 3, "我想休息");
        LeaveRequest leaveRequest3 = new LeaveRequest("小赵", 7, "手破皮了");
        LeaveRequest leaveRequest4 = new LeaveRequest("小林", 15, "回家玩耍");

        GroupLeader groupLeader = new GroupLeader();
        groupLeader.handle(leaveRequest1);
        groupLeader.handle(leaveRequest2);
        groupLeader.handle(leaveRequest3);
        groupLeader.handle(leaveRequest4);
    }
}
